package com.ruoyi.system.api.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import java.util.Date;

/**
 * APP版本管理对象 st_app_version
 * 
 * @author ruoyi
 * @date 2020-04-05
 */
public class StAppVersion extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 版本名称 */
    @Excel(name = "版本名称")
    private String versionName;

    /** 版本号 */
    @Excel(name = "版本号")
    private Long versionCode;

    /** 版本描述 */
    @Excel(name = "版本描述")
    private String versionDesc;

    /** 服务条款 */
    @Excel(name = "服务条款")
    private String termsOfService;

    /** 发布状态 0未发布 1已发布 */
    @Excel(name = "发布状态 0未发布 1已发布")
    private String releaseState;

    /** 发布时间 */
    @Excel(name = "发布时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date releaseDate;

    /** app下载地址 */
    @Excel(name = "app下载地址")
    private String appUrl;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setVersionName(String versionName) 
    {
        this.versionName = versionName;
    }

    public String getVersionName() 
    {
        return versionName;
    }
    public void setVersionCode(Long versionCode) 
    {
        this.versionCode = versionCode;
    }

    public Long getVersionCode() 
    {
        return versionCode;
    }
    public void setVersionDesc(String versionDesc) 
    {
        this.versionDesc = versionDesc;
    }

    public String getVersionDesc() 
    {
        return versionDesc;
    }
    public void setTermsOfService(String termsOfService) 
    {
        this.termsOfService = termsOfService;
    }

    public String getTermsOfService() 
    {
        return termsOfService;
    }
    public void setReleaseState(String releaseState) 
    {
        this.releaseState = releaseState;
    }

    public String getReleaseState() 
    {
        return releaseState;
    }
    public void setReleaseDate(Date releaseDate) 
    {
        this.releaseDate = releaseDate;
    }

    public Date getReleaseDate() 
    {
        return releaseDate;
    }
    public void setAppUrl(String appUrl) 
    {
        this.appUrl = appUrl;
    }

    public String getAppUrl() 
    {
        return appUrl;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("versionName", getVersionName())
            .append("versionCode", getVersionCode())
            .append("versionDesc", getVersionDesc())
            .append("termsOfService", getTermsOfService())
            .append("releaseState", getReleaseState())
            .append("releaseDate", getReleaseDate())
            .append("appUrl", getAppUrl())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
